home *** CD-ROM | disk | FTP | other *** search
- June 3, 1989
-
-
- CAL - Calendar, Version 1.00 - A simple calendar program with
- Modula-2 source code included.
-
- Contents:
- =========
- Purpose
- Installation
- Commands
- Program background
- Closing remarks
-
- Purpose:
- ========
- This program is directed at two very different groups of people.
-
- The first group is composed of non-programmers. These people
- are mainly interested in what a program can do for them. For
- these people, my CAL program is an free program that can be used
- as a sort of perpetual calendar. Although there are other
- programs that can do many of the same things, since this is a
- stand-alone, non-memory resident program, it takes up very
- little disk space and memory, and there is little chance of
- conflicts with other programs.
-
- The second group is composed of programmers who would appreciate
- having the source code available for a "real" working program,
- to customize or use as an example from which they can study and
- learn. For these people, the provided "library" routines can be
- used as a starting point.
-
- The source code library files TIME.DEF and TIME.MOD are by no
- means complete. In fact, they have been intentionally kept to a
- minimum. For example, although the files are named TIME, there
- are no definitions or routines to handle time in hours, minutes,
- seconds, etc.
-
- Although I only mentioned two groups, there is a third group.
- These are the high-powered programmers who can write their own
- programs from scratch, probably better than I could. My
- programs are not meant for them.
-
- Installation:
- =============
- To use the calendar program as is, just copy the CAL.EXE file to
- the disk from which you will be invoking the CAL command. If
- you are using a hard disk, it is suggested that you copy this
- file to a directory included on your PATH.
-
- Commands:
- =========
- Type CAL to start the calendar. The program will read your
- system clock and display the current month and year as the first
- page. The current day will be highlighted.
-
- Use the direction keys to move the highlight around in the
- Calendar Window. <Left> takes you to the previous day; <Right>
- the next day. <Up> takes you to the previous week; <Down> the
- next week. <PgUp> moves to the previous month; <PgDn> the next
- month. <Ctrl-PgUp> takes you to the previous year, keeping the
- same month and day; <Ctrl-PgDn> the next year. <Home> will
- return you the starting date.
-
- Pressing <Return> or <Esc> will take you out of the program.
-
- Program background:
- ===================
- There are all sorts of things for which time and date routines
- are useful. Payroll and time scheduling programs are just two
- examples.
-
- Although established algorithms exist for computations such
- converting a date to an ordinal number and for calculating the
- day of the week, I haven't run across the derivations for these
- - just the formulas that I'm supposed to take on faith. I like
- to use algorithms that I can easily understand and in which I
- can have confidence. I therefore wrote my own routines for
- these based on my understanding of the Gregorian calendar.
-
- Efficiency was not my primary goal. However, I have attempted
- not to be too inefficient.
-
- The source code was written for the JPI TopSpeed Modula-2
- compiler. There was some attempt to keep the code portable.
- This does not mean that modification for use on another compiler
- won't be necessary however.
-
- If one understands the underlying algorithms, it should not be
- too difficult to adapt the code to another Modula-2 compiler
- system (including library) or to another language, such as C.
-
- Closing remarks:
- ================
- Interested users are encouraged to contact me with comments, bug
- reports, suggestions and questions about the program. I can be
- reached at the addresses below:
-
-
- By conventional mail:
- ---------------------
- Raymond T. Kaya
- P. O. Box 1436
- Honolulu, HI 96806
-
-
- By electronic mail:
- -------------------
- CompuServe: 71230,2500
- GEnie: R.KAYA1
-
- ----------------end-of-author's-documentation---------------
-
- Software Library Information:
-
- This disk copy provided as a service of
-
- The Public (Software) Library
-
- We are not the authors of this program, nor are we associated
- with the author in any way other than as a distributor of the
- program in accordance with the author's terms of distribution.
-
- Please direct shareware payments and specific questions about
- this program to the author of the program, whose name appears
- elsewhere in this documentation. If you have trouble getting
- in touch with the author, we will do whatever we can to help
- you with your questions. All programs have been tested and do
- run. To report problems, please use the form that is in the
- file PROBLEM.DOC on many of our disks or in other written for-
- mat with screen printouts, if possible. The P(s)L cannot de-
- bug programs over the telephone.
-
- Disks in the P(s)L are updated monthly, so if you did not get
- this disk directly from the P(s)L, you should be aware that
- the files in this set may no longer be the current versions.
-
- For a copy of the latest monthly software library newsletter
- and a list of the 1,800+ disks in the library, call or write
-
- The Public (Software) Library
- P.O.Box 35705 - F
- Houston, TX 77235-5705
- (713) 665-7017
-